package cn.uyunsky.platform.config.bean.menu;

public class PlTran {

	private String id;

	// 交易码
	private String code;
	// 交易界面显示名称
	private String text;
    //页面url
	private String url;

    public PlTran() {
    }

    public PlTran(String code, String text, String url) {
        this.code = code;
        this.text = text;
        this.url = url;
    }

    /**
	 * @return
	 * @deprecated 目前没有持久化tran,id属性暂时不使用
	 */
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getUrl() {
        return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("PlTran [code=");
		builder.append(code);
		builder.append(", id=");
		builder.append(id);
		builder.append(", text=");
		builder.append(text);
		builder.append(", url=");
		builder.append(url);
		builder.append("]");
		return builder.toString();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((code == null) ? 0 : code.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PlTran other = (PlTran) obj;
		if (code == null) {
			if (other.code != null)
				return false;
		} else if (!code.equals(other.code))
			return false;
		return true;
	}

}
